Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add game test section #279

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

kevinthegreat1
Copy link
Contributor

Add a basic guide for game tests. Details could be added later.

@kevinthegreat1 kevinthegreat1 requested a review from a team as a code owner February 11, 2025 19:59
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for nimble-elf-d9d491 ready!

Name Link
🔨 Latest commit 8431d7a
🔍 Latest deploy log https://app.netlify.com/sites/nimble-elf-d9d491/deploys/67c0cc8a85ec1d000897d11a
😎 Deploy Preview https://deploy-preview-279--nimble-elf-d9d491.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@its-miroma its-miroma added improvement A new addition to an already existing page stage:expansion This should be expanded labels Feb 11, 2025
@its-miroma its-miroma requested a review from a team as a code owner February 15, 2025 18:06
@its-miroma its-miroma marked this pull request as draft February 15, 2025 18:06
@kevinthegreat1 kevinthegreat1 marked this pull request as ready for review February 27, 2025 20:39
@kevinthegreat1
Copy link
Contributor Author

All fixed up.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change line 60 to:

@[code lang=log transcludeWith=:::automatic-testing:5](@/reference/latest/src/test/java/com/example/docs/codec/BeanTypeTest.java)


### Writing Game Tests {#writing-game-tests}

You can now create server and client game tests in the `src/gametest/java` directory. Here is a barebones example of each.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can now create server and client game tests in the `src/gametest/java` directory. Here is a barebones example of each.
You can now create server and client game tests in the `src/gametest/java` directory. Here is a basic example for each:


<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java

See the respective javadocs in Fabric API for more info.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See the respective javadocs in Fabric API for more info.
See the respective Javadocs in Fabric API for more info.

Comment on lines +117 to +123
Server game test:

<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java

Client game test:

<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Server game test:
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java
Client game test:
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java
::: code-group
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsGameTest.java [Server]
<<< @/reference/latest/src/gametest/java/com/example/docs/FabricDocsClientGameTest.java [Client]
:::

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement A new addition to an already existing page stage:expansion This should be expanded
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants